home *** CD-ROM | disk | FTP | other *** search
- Path: Norway.EU.net!usenet
- From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Ceck out this bug. What the *** is SASC/6.56 doing?
- Date: 10 Mar 1996 05:43:08 GMT
- Organization: EUnet Norway
- Message-ID: <1120.6643T91T406@login.eunet.no>
- NNTP-Posting-Host: pc9.asker-pm2-1.eunet.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- Can anyone explain this? Try compiling this with a SC default SCOPTIONS
- file, and start it from CLI. It only crashes from CLI.
- This one was REALY fun finding. Dealyed ChunkyScreen a couple of days.
-
- ///("Includes"
- #include <hardware/cia.h>
- #include <intuition/screens.h>
- #include <proto/exec.h>
- #include <proto/graphics.h>
- #include <stdio.h>
- #include <stdlib.h>
- ///)
-
- #include <proto/intuition.h>
-
- //extern struct CIA ciaa;
-
- ///("CleanExit(void)"
- void CleanExit(void)
- {
- exit(0);
- }
- ///)
- ///("Fail(char *output)"
- void Fail(char *output)
- {
- printf(output);
- // CleanExit();
- }
- ///)
-
- #define ScreenWidth 160
- #define ScreenHeight 128
-
- void main(void)
- {
- int x,y,n;
- UBYTE Buffer[ScreenWidth];
- ULONG Palette[256*3+2]; // This one causes the bug.
-
- struct Screen *Scr=OpenScreenTags(NULL,
- SA_Width, 320,
- SA_Height, 256,
- SA_Depth, 8,
- TAG_END);
-
- CloseScreen(Scr);
- }
-
- <sb>Patrick Hanevold - Virtual Reality developer
- <sb>patrick.hanevold@login.eunet.no
- <sb>Amiga and official Be developer
-
-